import Mock from 'mockjs'
import homeApi from './mockServeData/home'
import userApi from './mockServeData/user'
import permission from "@/api/mockServeData/permission";

// 定义 mock 请求拦截
Mock.mock('/api/home/getData', homeApi.getStatisticalData)

// 定义增加用户的请求拦截
Mock.mock('/api/user/add', 'post', userApi.createUser)

// 定义删除用户的请求拦截
Mock.mock('/api/user/del',  'post', userApi.deleteUser)

// 定义修改用户的请求拦截
Mock.mock('/api/user/edit', 'post', userApi.updateUser)

// 定义获取用户列表的请求拦截
Mock.mock(/api\/user\/getUser/, 'get', userApi.getUserList)

Mock.mock(/api\/permission\/getMenu/, 'post', permission.getMenu)
